package com.csu.server.ui.desktop;

import java.awt.event.MouseEvent;

import com.csu.server.ui.desktop.internal.LoggerFrame;

public class LoggerItem extends EIMDesktopItem {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	

	public LoggerItem() {
		super();
	}

	public LoggerItem(EIMDesktop desktop,ItemConfig cofig) {
		super(desktop,cofig);
	}

	public void mouseClicked(MouseEvent e) {
		super.mouseClicked(e);
		if(e.getClickCount()==2){
		LoggerFrame childFrame = new LoggerFrame();
		childFrame.setClosable(true);
		this.getDesktop().add(childFrame, new Integer(10));
		childFrame.show();
		}
	}

	public void mousePressed(MouseEvent e) {

	}

	public void mouseReleased(MouseEvent e) {

	}

}
